package com.jiepos.mpos.biz.analysis.controller;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.jiepos.mpos.biz.analysis.service.LogStlInsSumAnalysisService;
import com.jiepos.mpos.common.entity.App_Log_Stl_Ins_SumEntity;
import com.jiepos.mpos.core.controller.BaseController;
import com.jiepos.mpos.core.entity.Pagination;

/**
 *
 *
 * <p>标题: —— 系统参数控制器</p>
 * <p>模块: 数据分析</p>
 * <p>版权: Copyright (c) 2017 江苏杰博实信息技术有限公司
 * @author 余翼膑
 * @version 1.0
 * @since 2017年12月08日
 * @history（历次修订内容、修订人、修订时间等）
 */

@Controller
@RequestMapping("logStlInsSumAnalysis")

public class LogStlInsSumAnalysisController extends BaseController {

    @Autowired
    private LogStlInsSumAnalysisService logStlInsSumAnalysisService;

    /**
     * 机构日交易汇总统计
     * @param request
     * @param response
     * @param pagination
     * @return
     */
    @RequestMapping("/getLogStlInsSumAnalysis.do")
    public ModelAndView getLogStlInsSumAnalysis(HttpServletRequest request, HttpServletResponse response, Pagination pagination){

        ModelAndView model = new ModelAndView("/module/analysis/logstlinssum_analysis");
        return super.getDetail(request, response, model);
    }

    /**
     * 查询通道列表信息json数据
     * @param pagination
     * @param appLogStlInsSumEntity
     * @return
     */
    @RequestMapping("/logstlinsSumAnalysisListJson.do")
    public @ResponseBody
    Map getFeedBackListJson(HttpServletRequest request,Pagination pagination, App_Log_Stl_Ins_SumEntity appLogStlInsSumEntity,String start_dt,String end_dt){
        return logStlInsSumAnalysisService.getLogStlInsSumAnalysisList(request,pagination, appLogStlInsSumEntity,start_dt,end_dt);
    }

}
